package com.yonyou.pmclouds.safetyrectification.assignrecord.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.safetyrectification.assignrecord.entity.AssignRecordVO;

import java.util.List;

/**
 * 安全整改-交办记录查询接口
 *
 * @author tanghuan
 * @date 2019/10/26
 */
public interface IAssignRecordQuery {
    /**
     * 通过主键查询
     *
     * @param id
     * @return
     * @throws BusinessException
     */
    AssignRecordVO getById(String id) throws BusinessException;

    /**
     * 通过单据查询
     *
     * @param pkBill
     * @return
     * @throws BusinessException
     */
    List<AssignRecordVO> getByPkBill(String pkBill) throws BusinessException;
}
